<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/views/include/nocachehead.jsp"%>
<c:set var="shortMessage" value="${requestScope.shortMessage}"></c:set>
<title>${shortMessage.ownerNickname }的短消息</title>
<link href="${pageContext.request.contextPath}/css/base.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/pagination.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/comment.js"></script>
<link href="/skyline/css/comment.css" rel="stylesheet" type="text/css" />
<link href="/skyline/css/base.css" rel="stylesheet" type="text/css" />
<style type="text/css">

a.articleCategoryA:link,a.articleCategoryA:visited {
	color: #3355ff;
	text-decoration: none;
	font-size:14px;
}

a.articleCategoryA:hover,a.articleCategoryA:active {
	color: #ffffff;
	background: #3355ff;
	font-size:14px;
}
a.articleTitleA:link,a.articleTitleA:visited {
	color: #3355ff;
	text-decoration: none;
	font-size:16px;
	font-weight:bold;
}

a.articleTitleA:hover,a.articleTitleA:active {
	color: #ffffff;
	background: #3355ff;
	font-size:16px;
	font-weight:bold;
}

a.articleContentA:link,a.articleContentA:visited {
	color: #000000;
	text-decoration: none;
	font-size:14px;
}

a.articleContentA:hover,a.articleContentA:active {
	color: #3355ff;
	font-size:14px;
}
.articleInfoFont{
	color: #777777;
	font-size:14px;
}
.articleTable {
	width:640px;
	border-top:1px dashed #cccccc;
	overflow:hidden;
}
</style>
</head>
<body>
<%@ include file="/views/include/statusbar.jsp"%>
<skyline:setSessionAttrToVar var="user" key="SESSION_USER"/>
	<br><br>
	<a href="${pageContext.request.contextPath}/wo/${shortMessage.ownerId}.html">${shortMessage.ownerNickname }</a>的短消息:
	<table class="shortMessageTable" width="640px">
		<tr>
			<td colspan='2' height="48x">
				<skyline:shortMessageContent shortMessage="${shortMessage}" skylineDomain="${pageContext.request.contextPath}"/>	
			</td>
		</tr>
		<tr>
			<td width='50%' align='left'>
				发表时间:<fmt:formatDate value="${shortMessage.createTime }" pattern="yyyy-MM-dd hh:mm"/>
			</td>
			<td width='50%' align='right'>
			<c:choose>
				<c:when test="${user!=null&&ownerId!=null&&user.id==ownerId}">
					<a href="${pageContext.request.contextPath}/shortMessage/delete/${shortMessage.id}.html" onclick="return confirm('你确定删除此日志么?\n\n提示:删除日志后将不可恢复.');" class="deleteA">删除</a>&nbsp;
				</c:when>
			</c:choose>
			</td>
		</tr>
	</table>
<br>
<skyline:comment ownerId="${shortMessage.ownerId }" maxSize="18" resourceName="短消息" commentType="SHORTMESSAGE" objId="shortMessageComment" contextPath="${pageContext.request.contextPath}" resourceId="${shortMessage.id }"/>
</body>
</html>